package mysql

import "gorm.io/gorm"

type UserZye1 struct {
	gorm.Model
	Username string `gorm:"type:varchar(20);comment:账户;"`
	Password string `gorm:"type:varchar(32);comment:密码;"`
	Mobile   string `gorm:"type:varchar(18);comment:手机号;"`
}

// 注册
func (u *UserZye1) RegisterByMobileUser() error {
	return DB.Create(&u).Error
}
